package com.iacrqq.sedaf.application.config;

import java.util.LinkedList;
import java.util.List;

public class Property 
{
	private PropertyTypeEnum type = PropertyTypeEnum.SINGLE_VALUE;
	private String name;
	private String value;
	private List<String> valueList = new LinkedList<String>();
	
	public PropertyTypeEnum getType() {
		return type;
	}
	public void setType(PropertyTypeEnum type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public List<String> getValueList() {
		return valueList;
	}
	public void addValue(String value) {
		this.valueList.add(value);
	}
	
	public static enum PropertyTypeEnum
	{
		SINGLE_VALUE(0, "Single value"),
		MULTI_VALUES(1, "Multi values");
		
		int value;
		String desc;
		
		private PropertyTypeEnum(int value, String desc)
		{
			this.value = value;
			this.desc = desc;
		}
	}
}
